package com.sx.service;

import com.sx.pojo.SaleBill;

import java.sql.SQLException;
import java.util.ArrayList;

public interface SaleBillService {
    ArrayList<SaleBill> getAllSaleBill();

    // 判断销售单号是否存在
    boolean checkSaleBillIDExists(String saleBillID);
    // 保存销售单
    //int  saveSaleBill(SaleBill saleBill) throws SQLException;
    int  saveSaleBill(SaleBill saleBill, String PersonId, String PersonName, int flag, int type);
    // 删除销售单
    //boolean deleteSaleBillById(String saleBillID);
    boolean deleteSaleBillById(String PersonId, String PersonName, int flag, int type, String id);
    // 根据销售单号获取销售单
    SaleBill getSaleBillById(String saleBillID);
    // 更新销售单
    boolean updateSaleBill(SaleBill saleBill, String PersonId, String PersonName, int flag, int type, String id);
}
